<?php
/**
 * Created by PhpStorm.
 * User: ljwaheng
 * Date: 2018/6/16
 * Time: 19:52
 */
namespace app\controllers;

use yii\web\Controller;
use app\models\Product;

class IndexController extends Controller{
    public function actionIndex()
    {
        $this->layout = 'layouts1';
        $product = new Product();
        $data = $product->find()->one();
        return $this->render('index',array('data' => $data));
    }
}
